﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.MakeStaticPagingComponent.WebsiteTemplate
{
    /// <summary>
    /// 网站模板信息模型
    /// </summary>
    public class WebsiteTemplateDto
    {
        /// <summary>
        /// 网站模板Id
        /// </summary>
        [Display(Name = "网站模板Id")]
        public int WebsiteTemplateId { get; set; }
        /// <summary>
        /// 网站模板名称
        /// </summary>
        [Display(Name = "网站模板名称")]
        public string TemplateName { get; set; }
        /// <summary>
        /// 网站模板演示地址
        /// </summary>
        [Display(Name = "网站模板演示地址")]
        public string Url { get; set; }
        /// <summary>
        /// 网站模板演示图
        /// </summary>
        [Display(Name = "网站模板演示图")]
        public string ShowImage { get; set; }
        /// <summary>
        /// 已使用
        /// </summary>
        [Display(Name = "已使用")]
        public bool IsUsed { get; set; }
        /// <summary>
        /// 是否免费
        /// </summary>
        [Display(Name = "是否免费")]
        public bool IsFree { get; set; }
        /// <summary>
        /// 已下载
        /// </summary>
        [Display(Name = "已下载")]
        public bool IsDownloaded { get; set; }
        /// <summary>
        /// 下载令牌
        /// </summary>
        [Display(Name = "下载令牌")]
        public string DownloadToken { get; set; }
        
        /// <summary>
        /// 金额
        /// </summary>
        [Display(Name = "金额")]
        public decimal Price { get; set; }
        /// <summary>
        /// 已购买
        /// </summary>
        [Display(Name ="已购买")]
        public bool? Paid { get; set; }
        
        /// <summary>
        /// 购买时间
        /// </summary>
        [Display(Name = "购买时间")]
        public DateTime? PaidTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Display(Name = "更新时间")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; }
    }
}
